package com.niguang.work.labour.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author 83673
 * @since 2018-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("work_user_paper")
public class UserPaper extends Model<UserPaper> {

    public static final String ID = "id";
    public static final String USER_ID = "user_id";
    public static final String PAPER_ID = "paper_id";
    public static final String CHILD_ID = "child_id";
    public static final String PAPER_URL = "paper_url";
    public static final String FIRST_DATE = "first_date";
    public static final String VALID_DATE = "valid_date";
    public static final String CREATE_DATE = "create_date";
    public static final String UPDATE_DATE = "update_date";
    public static final String DEL_FLAG = "del_flag";
    private static final long serialVersionUID = 1L;
    private Long id;
        /**
     * 用户ID
     */
         private Long userId;
        /**
     * 证件父级ID
     */
         private Long paperId;
        /**
     * 证件子级ID
     */
         private Long childId;
        /**
     * 证件路径
     */
         private String paperUrl;
        /**
     * 初领证件时间
     */
         private String firstDate;
        /**
     * 证件有效期
     */
         private String validDate;
    private LocalDateTime createDate;
    private LocalDateTime updateDate;
    private Integer delFlag;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
